<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/10/22
 * Time: 16:04
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


class Admin extends Base
{
    protected $rule = [
        "move_user" => "require|alphaDash",
        "move_pwd" => "require|max:32",
        "captcha" => "require|captcha"
    ];
    protected $message = [
        "move_user.require" => "用户名不能为空",
        "move_user.alphaDash" => "用户名格式不正常",
        "move_pwd.require" => "密码不能为空",
        "move_pwd.max" => "密码长度不能超过32位",
        "captcha.require" => "请输入验证码",
        "captcha.captcha" => "验证码输入错误"
    ];
    protected $scene = [
        "login" => ["move_user", "move_pwd", "captcha"]
    ];
}